home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 039a / mawk10.zip / MAKEFILE.V7 < prev    next >
Text File  |  1991-10-05  |  1KB  |  56 lines

  1.  
  2. ####################################
  3. # This is a makefile for mawk,
  4. # an implementation of AWK (1988).
  5. ####################################
  6. #
  7. #
  8. # This builds a regular expression library
  9. # Remove the -DMAWK and the library has general use.
  10. #
  11.  
  12.  
  13. CC = cc
  14. # CFLAGS for typical V7 system
  15. CFLAGS = -O -DMAWK -Dstrchr=index -Dvoid=int
  16.  
  17. O=rexp.o rexp0.o rexp1.o rexp2.o rexp3.o rexpdb.o
  18.  
  19. # The following stuff is for compilers whose symbols are unique only
  20. # to 7 (external) or 8 (local) characters.
  21.  
  22. .SUFFIXES : .cl .h .hl
  23.  
  24. .cl.o:
  25.     hash8 encode ../TABLE <$< >$*.c
  26.     $(CC) $(CFLAGS) $(CFLAGS2) -c $*.c 2>&1 | hash8 decode ../TABLE
  27.     rm $*.c
  28.  
  29. .c.o:
  30.     $(CC) $(CFLAGS) $(CFLAGS2) -c $*.c 2>&1 | hash8 decode ../TABLE
  31.  
  32. .cl.c:
  33.     hash8 encode ../TABLE <$< >$*.c
  34.  
  35. .hl.h:
  36.     hash8 encode ../TABLE <$< >$@
  37.  
  38. #######################################
  39.  
  40. regexp.a : $(O)
  41.     ar r regexp.a *.o
  42.     if [ -f /usr/bin/ranlib -o -f /bin/ranlib ] ; then\
  43.           ranlib regexp.a ; else true ; fi
  44.  
  45. rexp.o : rexp.h
  46.  
  47. rexp0.o : rexp.h
  48.  
  49. rexp1.o : rexp.h
  50.  
  51. rexp2.o : rexp.h
  52.  
  53. rexp3.o : rexp.h
  54.  
  55. rexpdb.o : rexp.h
  56.